package noppes.vc.items;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.EnumAction;
import net.minecraft.item.ItemStack;
import net.minecraft.util.ActionResult;
import net.minecraft.util.EnumHand;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.World;

public class ItemMusicOracina extends ItemMusic {
   public ItemMusicOracina() {
      this.addPropertyOverride(new ResourceLocation("pull"), new ItemMusicOracina$1(this));
      this.addPropertyOverride(new ResourceLocation("pulling"), new ItemMusicOracina$2(this));
   }

   public EnumAction getItemUseAction(ItemStack par1ItemStack) {
      return EnumAction.BOW;
   }

   public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer player, EnumHand hand) {
      player.setActiveHand(hand);
      return super.onItemRightClick(world, player, hand);
   }

   public int getMaxItemUseDuration(ItemStack par1ItemStack) {
      return 72000;
   }
}
